<?php 
use yii\helpers\Html;
use yii\widgets\LinkPager;
?>
<section id="main" class="column main_shadow" style="width: 85%;">
		<nav class="nav">
			<a href="?w=position/position_list" class="button blue">审核信息</a>
			<a href="?w=position/position_add" class="button blue">发布</a>
		</nav>
		<hr class="split"/>
		<h4 class="alert_info" id="perror">展示所申请的招聘信息</h4>
		<article class="module width_full">
			<div class="tab_container">
				<table cellspacing="0" class="tablesorter"> 
					<thead> 
						<tr> 
							<th width="15%" class="tc">职位名称</th> 
							<th width="9%">是否展示</th> 
							<th width="9%">结算方式</th> 
							<th width="9%">性别要求</th> 
							<th width="9%">薪资</th> 
							<th width="12%">添加时间</th>
							<th width="9%">分类</th>
							<th width="16%">面试地点</th>
							<th width="20%">状态</th>
						</tr> 
					</thead> 
					<tbody> 
					<?php foreach ($data as $k => $v) {?>
						<tr>
							<td class="tc"><?= $v['pos_name']?></td>
							<td><?php if($v['pos_show']==1) echo '是';else echo '否';?></td> 
							<td><?php if($v['settlement']==1){echo '日结';}elseif($v['settlement']==2){echo '周结';}elseif($v['settlement']==3){echo '月结';}else{echo '面议';} ?></td> 
							<td><?php if($v['pos_sex']==1){echo '女';}elseif($v['pos_sex']==2){echo '男';}else{echo '不限';}?></td> 
							<td><?= $v['pos_salary']?></td>
							<td><?= date('Y-m-d H:i:s',$v['addtime'])?></td>
							<td><?= $v['classify_name']?></td>
							<td><?= $v['pos_interview']?></td>
							<td><?php if($v['pos_state']==1){echo '<font color="green">审核已通过</font>';}elseif($v['pos_state']==2){echo '<font color="brown">审核中</font>';}else{echo '<font color="red">审核未通过</font>';}?></td>
						</tr>
					<?php }?>
					</tbody> 
				</table>
			</div>
			<?=LinkPager::widget(['pagination' =>$pagination])?>
		</article><!-- end of post new article -->
		<nav class="nav">
			
		</nav>
</section>
